package com.gemme.gemme.wode;

import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.alibaba.fastjson.JSON;
import com.amap.api.maps.AMap;
import com.amap.api.maps.CameraUpdateFactory;
import com.amap.api.maps.MapView;
import com.amap.api.maps.model.MyLocationStyle;
import com.gemme.gemme.BaseActivity;
import com.gemme.gemme.R;
import com.gemme.gemme.manager.DataManager;
import com.gemme.gemme.view.LuckPan;
import com.gemme.gemme.view.LuckPanAnimEndCallBack;
import com.gemme.gemme.view.Topview;
import com.gemme.gemme.view.WuliuView;
import com.jaeger.library.StatusBarUtil;

import java.util.HashMap;

import androidx.annotation.RequiresApi;

//侧滑删除地址
public class LuckPanActivity extends BaseActivity{

    private Bundle savedInstanceState;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        this.savedInstanceState = savedInstanceState;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_luck_pan);
        initView();
    }
//    ,"撒大声道1","撒大声道2","撒旦说"
    private String[] mItemStrs = {"123","撒大声道3","哥哥哥","对应效果","对应代码","撒旦说"};
    private void initView() {
        LuckPan pan = (LuckPan) findViewById(R.id.luckpan);
        TextView tv_start = (TextView) findViewById(R.id.tv_start);
        pan.setItems(mItemStrs);
        pan.setLuckNumber(2);
        pan.setLuckPanAnimEndCallBack(new LuckPanAnimEndCallBack() {
            @Override
            public void onAnimEnd(String str) {
                Toast.makeText(mContext, str, Toast.LENGTH_SHORT).show();
            }
        });
        tv_start.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                pan.startAnim();
            }
        });
    }

}